package com.whminwei.edu.api.dc.dto.fspn.other;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author zhangjq
 * @since 2024-08-07
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DcInventFspn {

    private List<DcInvent> invents;

    private List<String> deleted;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class DcInvent {
        private String id;
        /**
         * 发明专利名称
         */
        private String name;
        /**
         * 发明专利类型
         */
        private String type;
        /**
         * 发明专利证书编号
         */
        private String certNo;
        /**
         * 发明专利成果编号
         */
        private String fruitNo;
        /**
         * 学科领域
         */
        private String speciality;
        /**
         * 专利批准日期
         */
        private String allowDate;
        /**
         * 参与人员
         */
        private List<DcParticipant> participants;

    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class DcParticipant {
        /**
         * 教职工ID
         */
        private String staffId;
        /**
         * 合作情况
         */
        private String sort;
        /**
         * 是否主持人
         */
        private String manage;
    }
}
